<html>
<head><meta charset="utf-8"><title>How to compile rustc with custom cc-rs? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20compile.20rustc.20with.20custom.20cc-rs.3F.html">How to compile rustc with custom cc-rs?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="201384339"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20compile%20rustc%20with%20custom%20cc-rs%3F/near/201384339" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20compile.20rustc.20with.20custom.20cc-rs.3F.html#201384339">(Jun 19 2020 at 12:48)</a>:</h4>
<p>How would I compile rust with a custom cc-rs? <code>[patch]</code> doesn't work, as some crates will still pull in the cc-rs from <a href="http://crates.io">crates.io</a> (<em>cough</em> compiler-builtins <em>cough</em>), and I can't specify my own local compiler-builtins without recursive dependencies.</p>



<a name="201384378"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20compile%20rustc%20with%20custom%20cc-rs%3F/near/201384378" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20compile.20rustc.20with.20custom.20cc-rs.3F.html#201384378">(Jun 19 2020 at 12:49)</a>:</h4>
<p>patch should work on both compiler-builtins and cc-rs</p>



<a name="201394574"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20compile%20rustc%20with%20custom%20cc-rs%3F/near/201394574" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20compile.20rustc.20with.20custom.20cc-rs.3F.html#201394574">(Jun 19 2020 at 14:07)</a>:</h4>
<p><span class="user-mention silent" data-user-id="211727">Jonas Schievink</span> <a href="#narrow/stream/182449-t-compiler.2Fhelp/topic/How.20to.20compile.20rustc.20with.20custom.20cc-rs.3F/near/201384378">said</a>:</p>
<blockquote>
<p>patch should work on both compiler-builtins and cc-rs</p>
</blockquote>
<p>if i patch compiler-builtins i get an epic recursive deps issue</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>